Repository navigation
Conversation
ecv
left a comment
There was a problem hiding this comment.
Approve.
A superseded runtime class only produces a warning on workload create. Update validation is untouched and selection still uses catalog.Find, so workloads already naming a superseded class, and the controller's patches to them, are still admitted. SupersededBy is read once and never followed, so a loop or a missing target can't hang. The console-session and logs edits move onto Catalog.Resolve with the same behavior, and the CRD change is description-only. go build ./... and the changed packages' tests pass at this head.
Follow-up: Default() now skips a superseded class. Superseding the current default before marking its replacement as default leaves no default, and then:
- new workloads that name no class are rejected
- stored workloads with an empty class are rejected on every update, including the controller's own patches (
workload_validation.go:105)
If the replacement is already the default, those workloads quietly move to its tier on their next update. Guard the order, and test Default() with a superseded default.
Adds a
compute.datumapis.com/superseded-byannotation for RuntimeClasses.A superseded class keeps working for every workload that uses it, but it's no longer the default or offered as a choice. This lets
unikernelbe replaced bymicrovmwithout touching existing workloads.Default()skips superseded classes, andOffered()lists only current ones.--runtime-classnow completes with the offered classes.Nothing changes until a class carries the annotation. This needs to be rolled out to every environment before any changes to the runtime classes themselves.
Related to #684